package com.novoda.runbuddy.view;

import android.app.Activity;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.novoda.runbuddy.controller.IRouteRunnerController;

public class RouteEntryView extends LinearLayout {

	private TextView			title;
	private IRouteRunnerController		controller;

	public RouteEntryView(Activity activity, String nameOfRoute, IRouteRunnerController controller) {
		super(activity);

		this.setOrientation(VERTICAL);
		
		title = new TextView(activity);
		title.setText(nameOfRoute);
		this.setPadding(0, 8, 0, 12);
		this.controller = controller;

		addView(title, new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

	}

}
